<h3 class="widget-name">Assing Holiday</h3>
<?= form_open('founder/holidays/create_holiday')?>
<table width="100%" >
  <tr>
    <td width="30%"><strong>Holiday Date</strong></td>
    <td width="34%"><strong>Reason</strong></td>
    <td width="36%">&nbsp;</td>
  </tr>
  <tr valign="top">
  <td><input type="text" name="holiday_date" id="holiday_date" class="datepicker" value="<?=set_value('holiday_date')?>" />
   <small class="text-error"><?=form_error('holiday_date')?></small>
  </td>
    <td><textarea name="holiday_reason" id="holiday_reason"><?=set_value('holiday_reason')?></textarea>
    <small class="text-error"><?=form_error('holiday_reason')?></small>
    </td>
    <td></td>
  </tr>
  <tr>
  <td colspan="3">
  <input type="submit" value="Create Holiday" class="btn btn-info btn-small" id="create_holiday" />
  </td>
  </tr>
</table>
</form>
<div class="line"></div>
<h4>All Holiday List's</h4>
<?php $msg = $this->session->flashdata('holiday_msg')?>
<?php if(!empty($msg)) {?>
<div id="alert" class="alert alert-success">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<?= $msg?></div>
<?php }?>
<table class="table" width="100%" id="example">
<thead>
<tr>
<th>Holiday Date</th>
<th>Holiday Reason</th>
<th>Action</th>
</tr>
</thead>
<?php foreach($holidays as $holiday) {?>
<tr>
<td class="text-info"><?php echo '20'.$holiday->year_id.'-'.$holiday->month_id.'-'.$holiday->date_id?></td>
<td class="text-error"><?=$holiday->reason?></td>
<td><a href="<?=site_url('founder/holidays/delete').'/'.$holiday->id?>"><i class="icon-trash"></i></a></td>
</tr>
<?php }?>
</table>
